<h3 class="page-title">添加用户
    <small>Add User</small>
</h3>

<ul class="breadcrumb">
    <li>
        <i class="icon-home"></i>
        <a href="../temp/index.html">Home</a>
        <i class="icon-angle-right"></i>
    </li>
    <li><a href="#">首页</a></li>
    <li class="pull-right no-text-shadow">
        {{utc}} UTC
    </li>
</ul>


<div class="portlet box red">
    <div class="portlet-title">
        <div class="caption"><i class="icon-reorder"></i>添加用户</div>
        <div class="tools">
            <a href="javascript:;" class="collapse"></a>
        </div>
    </div>

    <div class="portlet-body form">
        <!-- BEGIN FORM-->
        <form action="#" class="form-horizontal">
            <h3 class="form-section">基本信息</h3>
            <div class="row-fluid">
                <div class="span6 ">
                    <div class="control-group">
                        <label class="control-label">登录名</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" placeholder="创建账号" ng-model="user.loginName">
                        </div>
                    </div>
                </div>

                <!--/span-->
                <div class="span6 ">
                    <div class="control-group">
                        <label class="control-label">密码</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" placeholder="为账号创建密码" ng-model="user.password">
                        </div>
                    </div>
                </div>
                <!--/span-->

            </div>

            <!--/row-->
            <div class="row-fluid">
                <div class="span6 ">
                    <div class="control-group">
                        <label class="control-label">姓</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" placeholder="输入用户姓" ng-model="user.firstName">
                        </div>
                    </div>
                </div>

                <!--/span-->
                <div class="span6 ">
                    <div class="control-group">
                        <label class="control-label">名</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" placeholder="输入用户名" ng-model="user.lastName">
                        </div>
                    </div>
                </div>

                <!--/span-->

            </div>

            <!--/row-->
            <div class="row-fluid">
                <div class="span6">
                    <div class="control-group">
                         <label class="control-label">选择性别</label>
                        <div class="controls">
                            <select class="m-wrap span12" ng-model="user.sex">
                                <option value="1">男</option>
                                <option value="0">女</option>
                            </select>
                        </div>
                    </div>
                </div>

                <!--/span-->
                <div class="span6">
                    <div class="control-group">
                        <label class="control-label">出生日期</label>
                        <div class="controls">
                            <input type="text" ng-model="user.birthday" je-date class="m-wrap span12" placeholder="选择出生日期">
                        </div>
                    </div>
                </div>
                <!--/span-->
            </div>

            <div class="row-fluid">
                <div class="span6 ">
                    <div class="control-group">
                        <label class="control-label">邮箱</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" ng-model="user.email" placeholder="分配邮箱地址">
                        </div>
                    </div>
                </div>

                <!--/span-->
                <div class="span6 ">
                    <div class="control-group">
                        <label class="control-label">邮箱密码</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" ng-model="user.mailPassword" placeholder="创建邮箱密码">
                        </div>
                    </div>
                </div>
                <!--/span-->
            </div>

            <div class="row-fluid">
                <div class="span6">
                    <div class="control-group">
                        <label class="control-label">选择职位</label>
                        <div class="controls">
                            <select class="m-wrap span12" ng-model="user.post">
                                <option ng-repeat="position in post" value="{{position.postId}}">{{position.postName}}</option>
                            </select>
                        </div>
                    </div>
                </div>

                <!--/span-->
                <div class="span6">
                    <div class="control-group">
                        <label class="control-label">工号</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" placeholder="创建工号" ng-model="user.jobNum">
                        </div>
                    </div>
                </div>
                <!--/span-->
            </div>


            <h3 class="form-section">详细信息</h3>
            <div class="row-fluid">
                <div class="span6 ">
                    <div class="control-group">
                        <label class="control-label">英文名</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" placeholder="英文名" ng-model="user.englishName">
                        </div>
                    </div>
                </div>

                <!--/span-->
                <div class="span6">
                    <div class="control-group">
                        <label class="control-label">联系方式</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" placeholder="联系方式" ng-model="user.phone">
                        </div>
                    </div>
                </div>
                <!--/span-->
            </div>

            <div class="form-actions">
                <button type="button" class="btn blue" ng-click="add()"><i class="icon-ok"></i> 保存</button>
                <button type="button" class="btn">重置</button>
            </div>

        </form>

        <!-- END FORM-->

    </div>

</div>


